#include<stdio.h>
#include "work.h"

void work1()
{
	printf("hello world!  \n");
}

void work2()
{
	printf("hello kitty! \n");
}

void work3()
{
	printf("hello debug! \n");
}

work work_Register[] = {
	{3,"hello world",work1},
	{1,"hello kitty",work2},
	{2,"hello debug",work3},
};

int main(void)
{
	s32 i ;
	INIT_WORK(work_node);

	for(i = ZERO ; i < NR(work_Register) ; i++) 
	{
		REGISTER_WORK(work_node , create_cwork(work_Register[i].work_num ,work_Register[i].work_name , work_Register[i].work_handler));
	}
	SCHEDULING_WORK(work_node,Positive,NR(work_Register));
	DESTROY_WORK(work_node,work_Register);
	printf("work_node:%p\n",work_node);
	return 0 ;
}
